package com.ruoyi.food.object;

import java.math.BigDecimal;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 活动实体
 * @author mengcc
 *
 */
@ApiModel(value = "TActivity", description = "活动")
public class TActivity extends BaseEntity{
	
	/**活动id**/
	@ApiModelProperty(value = "主键id", name = "actId")
	private long actId;
	
	/**活动类型**/
	@ApiModelProperty(value = "活动类型", name = "actType")
	private int actType;
	
	/**活动名称**/
	@ApiModelProperty(value = "活动名称", name = "actName")
	private String actName;
	
	/**活动开始时间**/
	@ApiModelProperty(value = "活动开始时间", name = "startTime")
	private Timestamp startTime;
	
	/**活动结束时间**/
	@ApiModelProperty(value = "活动结束时间", name = "endTime")
	private Timestamp endTime;
	
	/**活动是否有效**/
	@ApiModelProperty(value = "活动是否有效（0无效，1有效，3全部）", name = "isValid")
	private int isValid;
	
	/**创建人id**/
	@ApiModelProperty(value = "创建人id", name = "creatorId")
	private BigDecimal creatorId;
	
	/**创建时间**/
	@ApiModelProperty(value = "创建时间", name = "createTime")
	private Timestamp createTime;
	
	/**单价**/
	@ApiModelProperty(value = "单价", name = "price")
	private BigDecimal price;
	
	/**代金券**/
	@ApiModelProperty(value = "代金券", name = "voucher")
	private BigDecimal voucher;
	
	/**购买金额**/
	@ApiModelProperty(value = "购买金额", name = "amount")
	private BigDecimal amount;
	
	/**参加活动人数**/
	@ApiModelProperty(value = "参加活动人数", name = "num")
	@TableField(exist = false)
	private int num;

	public long getActId() {
		return actId;
	}

	public void setActId(long actId) {
		this.actId = actId;
	}

	public int getActType() {
		return actType;
	}

	public void setActType(int actType) {
		this.actType = actType;
	}

	public String getActName() {
		return actName;
	}

	public void setActName(String actName) {
		this.actName = actName;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public int getIsValid() {
		return isValid;
	}

	public void setIsValid(int isValid) {
		this.isValid = isValid;
	}

	public BigDecimal getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(BigDecimal creatorId) {
		this.creatorId = creatorId;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getVoucher() {
		return voucher;
	}

	public void setVoucher(BigDecimal voucher) {
		this.voucher = voucher;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	
	

}
